module.exports = app => {
    const mongoose = app.mongoose;
    const Schema = mongoose.Schema;

    const UserSchema = new Schema({
        name: {
            type: String
        },
        password: {
            type: String
        },
        phone: {
            type: String
        },
        age: {
            type: String
        },
        sex: {
            type: String
        }
    });
    return mongoose.model('Users', UserSchema, 'users');
}